package com.cheers.service;

public interface UserService {

	/**
	 * 修改用户信息
	 * @param userId
	 * @param password
	 * @param address
	 * @param mobile
	 * @return
	 * @throws Exception
	 */
	public String mod(String userId, String password, String address, String mobile) throws Exception;
	
	/**
	 * 登陆
	 * @param username
	 * @param password
	 * @return
	 * @throws Exception
	 */
	public String login(String username, String password) throws Exception;
	
	/**
	 * 用户名是否存在
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public boolean exist(String username) throws Exception;
	
	
	/**
	 * 注册
	 * @param username
	 * @param password
	 * @param email
	 * @return
	 * @throws Exception
	 */
	public String register(String username, String password, String email) throws Exception;
	
	/**
	 * 申请推广员
	 * @param userId
	 * @param realname
	 * @param address
	 * @param mobile
	 * @param qq
	 * @param job
	 * @return
	 * @throws Exception
	 */
	public String apply(String userId, String realname, String address, String mobile, String qq, String job) throws Exception;
	
}
